<?php use_helper('Javascript') ?>

<div class="title">
    <?php echo __('search') ?>
</div>

<div class="search_bar">
    <div class="search_path">
        <?php echo __('search value') ?>: <span class="bold"><?php echo $search ?></span><br />
        <?php echo __('search results') ?>: <span class="bold"><?php echo $count_result ?></span>
    </div>
    <div class="another_search">
        <form name="form_seach" method="POST" action="<?php echo url_for('product/search') ?>">
            <?php echo tag('input', array(
                                            'name' => 'search'
                                            , 'type' => 'text'
                                            , 'value' => __('search')
                                            , 'size' => '20'
                                            , 'class' => 'search_input'
                                            , 'onfocus' => 'this.select()'
                                            ) 
                                ); ?>
            <input type="submit" value="" class="search_submit" />
        </form>
    </div>
    <div class="search_again">
        <?php echo __('search again') ?>:
    </div>
</div>

<hr class="hr_search" />

<!--
<br><b>Kategorijos</b><br />
<hr>

<?php foreach( $arSearchCategory as $obj): ?>
	<?php echo __('name') ?>: <?php echo $obj->getName(); ?><br />
	<?php echo __('text') ?>: <?php echo $obj->getText(); ?><br />
	<?php echo __('branch') ?>: <?php echo $obj->getBranch(); ?><br />

            <?php if( $obj->hasPhoto($obj->getId()) ): ?>
                <?php echo link_to(
                                image_tag(
                                    Files::getDirPath('tiny').$obj->getPhotoName($obj->getId())
                                    , array(
                                        'border' => '0'
                                        , 'alt' => $obj->getName()
                                        , 'title' => $obj->getName()
                                    )
                                )
                                , 'product/show/?id='.$obj->getId()
                            )
                        ?> 
                
            <?php //echo $obj->getPhotoName() ?>
            <?php else: ?>
                ---
            <?php endif; ?>
	
<?php endforeach; ?>

<hr>
<br /><b>Produktai</b><br />
-->

<table cellpadding="0" cellspacing="0" class="goods">
<tr>
<td>

<?php foreach( $arSearchProduct as $product): ?>

    <?php include_partial('product/product', array('product' => $product)); ?>
<?php endforeach; ?>

</td>
</tr>
</table>